<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
<link href="${ctx}/static/bootstrap/2.2.2/css/bootstrap.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/static/jquery/jquery-1.8.3.min.js"></script>
	<title>收费方案</title>
<script type="text/javascript">
	$(document).ready(function(){
		//获取所有公共收费方案
		$.post("${ctx}/payfor/loadPlan?d=" + new Date(),{},function(data){
			if(data != 'false'){
				$.each(data,function(inx,obj){
					var htmlStr = "<input type='radio' name='pid' value='" + obj.id + "'/>" + obj.name;
					$("#shoufeiDiv").append(htmlStr);
				});
			}
		},"json");
		//获取所有收费项目
		$.post("${ctx}/payfor/loadAllScale?d=" + new Date(),{},function(data){
			if(data != 'false'){
				var i = 0;
				$.each(data,function(inx,obj){
					var htmlStr = "<tr>";
					htmlStr += "<td><input type='checkbox' name='sid' value='" + obj.id +"'/></td>";
					htmlStr += "<td>" + obj.name + "</td>";
					htmlStr += "<td><input type='text' name=''/></td>";
					htmlStr += "</tr>";
					$("#xiangmuP").append(htmlStr);
					i ++;
				});
			}
		},"json");
	});
</script>
</head>
<body>
<div>收费方案</div>
<p id="shoufeiDiv"></p>
<div>收费项目</div>
<table border="1" id="xiangmuP">
	<tr>
		<td>&nbsp;</td>
		<td>收费项目</td>
		<td>单位</td>
	</tr>
</table>
</body>
</html>
